package com.fast.server.entity.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户信息表
 * </p>
 *
 * @author ziyuancheng
 * @since 2024-05-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_user")
@ApiModel(value = "SysUser对象", description = "用户信息表")
public class SysUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户ID")
    @TableId("user_id")
    private String userId;

    @ApiModelProperty(value = "昵称")
    @TableField("nick_name")
    private String nickName;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "QQ OpenID")
    @TableField("qq_open_id")
    private String qqOpenId;

    @ApiModelProperty(value = "微信 OpenID")
    @TableField("wechat_id")
    private String wechatId;

    @ApiModelProperty(value = "GQ头像")
    @TableField("user_avatar")
    private String userAvatar;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "加入时间")
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "最后登录时间")
    @TableField("last_login_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastLoginTime;

    @ApiModelProperty(value = "0:禁用 1:启用")
    private Integer status;

    @ApiModelProperty(value = "使用空间，单位 byte")
    @TableField("use_space")
    private Long useSpace;

    @ApiModelProperty(value = "总空间")
    @TableField("total_space")
    private Long totalSpace;


}
